<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript" th:src="@{/js/jquery-1.7.2.min.js}"></script>
<script type="text/javascript">
    $(function () {
        alert("------");
        alert($("#username").val());

    });
</script>
<input type="text" id="username" value="999">
<img th:src="@{/img/001.jpg}">
</body>
</html>